<include file="Public:header" />

<table class="table table-bordered table-hover definewidth m10">
    <tr>
        <td class="tableleft">记录编号</td>
        <td>{$fault_records.records_no}</td>
    </tr>
    <tr>
        <td class="tableleft">故障设备</td>
        <td>
            {$fault_records.equipment_number}({$fault_records.equname})
        </td>
    </tr>
    <tr>
        <td class="tableleft">故障时间</td>
        <td>
           {$fault_records.fault_time|date='Y-m-d',###}
        </td>
    </tr>
    <tr>
        <td class="tableleft">故障原因</td>
        <td>
            {$fault_records.fault_reason}
        </td>
    </tr>
    <tr>
        <td class="tableleft">处理办法</td>
        <td>
             {$fault_records.deal_method}
        </td>
    </tr>
    <tr>
        <td class="tableleft">维护后设备状态</td>
        <td>
            {$fault_records.status}
        </td>
    </tr>
        <tr>
            <td class="tableleft"></td>
            <td>
                <button type="button" class="btn btn-primary" type="button" id="edit-records">修改</button> &nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
            </td>
        </tr>
</table>

<script>
    $(function () {
        $('#backid').click(function(){
            window.location.href="{:U('Home/FaultRecords/Index')}";
        });
        $('#edit-records').click(function(){
            window.location.href="{:U('Home/FaultRecords/edit',array('recid'=>$fault_records['fault_records_id']))}";
        });

    });
</script>

<include file="Public:footer" />